<script type="text/javascript" src="parse.js"></script>
<script type="text/javascript" src="generate.js"></script>
<script type="text/javascript" src="lib.js"></script>
<script type="text/javascript">
function c(){
  document.getElementById("out").value=compilefn(document.getElementById("in").value,"ajaxload");
  
}
function c2(){
  document.getElementById("out").value=compile(document.getElementById("in").value);
}
function e(){
  eval(document.getElementById("out").value)
}
</script>
<textarea style="width: 100%; height: 300px" id="in">alert(ajaxload("moo.txt"))</textarea>
<br>
<button onclick="c()">Compile!</button>
<button onclick="e()">Run!</button>
<br>
<textarea style="width: 100%; height: 300px" id="out"></textarea>